<template>
    <div>
        <div class="card-container">
    <article class="card">
        <div class="card-bg">
      <div class="card-content">
        <img src="@/assets/images/chatAI/catArtCrad.png" alt="Card Image" class="card-image" />
      </div>
    </div>
    </article>
  </div>
    </div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
/* 响应式卡片样式 */
.card-container {
  display: flex;
  justify-content: center;
  align-items: center;

}

.card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 0px;
  transition: all 0.3s ease;
  position: relative;
  /* 添加背景图片 */
  background-image: url("@/assets/images/chatAI/bg.png");
  background-position: center;
  background-position-y: -64px;
  border-radius: 8px;
  width: 100%;
  height: 100px; /* 根据需要调整高度 */
}

.card:hover {
  transform: translateY(-4px);
}
.card-image {
    position: relative;
  right: 50px;
  bottom: 35px;
  height:145px;
  border-radius: 8px;
  margin-bottom: 16px;
  z-index: 0;
}
.card-image:hover{
  transform: scale(1.1);
}
.card-content {
  text-align: center;
}

.card-title {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 10px;
}

.card-description {
  font-size: 0.9rem;
  color: #666;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card {
    width: 90%;
    max-width: 300px;
  }

  .card-image {
    border-radius: 4px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.8rem;
  }
}
</style>
